﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PhongMachTu.OModel
{
    class Medicine
    {
        private int idMedicine;
        private MedicineUnit _unit;
        private MedicineUsing _using;
        private string _name;
        private double _price;
        private int _quantityUse, _useTime;

        public Medicine()
        {
        }

        public Medicine(int id, string name, double price, MedicineUnit unit, MedicineUsing usingMed)
        {
            idMedicine = id;
            _name = name;
            _price = price;
            _unit = unit;
            _using = usingMed;
        }

        public int IdMedicine
        {
            get { return idMedicine; }
            set { idMedicine = value; }
        }
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        public double Price
        {
            get { return _price; }
            set { _price = value; }
        }
        public MedicineUnit Unit
        {
            get { return _unit; }
            set { _unit = value; }
        }
        public MedicineUsing Using
        {
            get { return _using; }
            set { _using = value; }
        }
        public int UseTime
        {
            get { return _useTime; }
            set { _useTime = value; }
        }

        public int QuantityUse
        {
            get { return _quantityUse; }
            set { _quantityUse = value; }
        }


    }
}
